package com.th.supcom.pds.common.utils;

import com.extjs.gxt.ui.client.widget.Label;
import com.extjs.gxt.ui.client.widget.toolbar.ToolBar;

/**
 * 颜色说明工具类
 * 
 * @author 杨冲
 */
public final class ClientColorDescUtils
{
    private ClientColorDescUtils ()
    {
    }

    /**
     * 增加颜色说明面板
     * 
     * @return add by 杨冲
     */
    public static ToolBar createPhamDispenseColorDesc ()
    {
        ToolBar toolBar;
        toolBar = new ToolBar ();
        String txt = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;"
                     + "<span class='redTendGrade'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;药品库存不足</spqn> <span class='orangeTendGrade'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;药品不可供</span>"
                     + "<span class='greenTendGrade'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;患者余额不足</span>"
                     + "<span class='blueTendGrade'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;可请领撤销</span>";
        Label lab = new Label (txt);
        lab.setStyleAttribute ("margin-left", "10px");
        toolBar.add (lab);
        return toolBar;
    }

}
